<template>
    <p>这是父组件=======</p>
    <SlotSon v-slot="slotProps">
        {{ slotProps }}
        儿子的名字是: {{ slotProps.sonName }}
    </SlotSon>
</template>

<script setup>
import SlotSon from './SlotSon.vue';
</script>